package cn.kgc.ssm.service;

import cn.kgc.ssm.commons.ResponseResult;
import cn.kgc.ssm.entity.User;
import cn.kgc.ssm.form.LoginForm;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 课工场
 * @date 2024/5/8
 * @description
 */
public interface UserService {


    ResponseResult login(HttpServletRequest request, LoginForm loginForm);

    ResponseResult getPersonalInfo(String username);

    ResponseResult editPersonalInfo(User user);

    ResponseResult editPersonalPassword(String oldPassword, String password, HttpServletRequest request);

    ResponseResult userPage(Integer page, Integer limit, String nickname);

    ResponseResult addUser(User user);

    ResponseResult getByUserId(Integer id);

    ResponseResult editUser(User user);

    ResponseResult removeUser(List<Integer> ids);

    ResponseResult resetPassword(Integer id);
}
